package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.EvViolationMapper;
import com.ruoyi.system.domain.EvViolation;
import com.ruoyi.system.service.IEvViolationService;

/**
 * 违规管理Service业务层处理
 * 
 * @author wtd
 * @date 2025-11-15
 */
@Service
public class EvViolationServiceImpl implements IEvViolationService 
{
    @Autowired
    private EvViolationMapper evViolationMapper;

    /**
     * 查询违规管理
     * 
     * @param violationId 违规管理主键
     * @return 违规管理
     */
    @Override
    public EvViolation selectEvViolationByViolationId(Long violationId)
    {
        return evViolationMapper.selectEvViolationByViolationId(violationId);
    }

    /**
     * 查询违规管理列表
     * 
     * @param evViolation 违规管理
     * @return 违规管理
     */
    @Override
    public List<EvViolation> selectEvViolationList(EvViolation evViolation)
    {
        return evViolationMapper.selectEvViolationList(evViolation);
    }

    /**
     * 新增违规管理
     * 
     * @param evViolation 违规管理
     * @return 结果
     */
    @Override
    public int insertEvViolation(EvViolation evViolation)
    {
        return evViolationMapper.insertEvViolation(evViolation);
    }

    /**
     * 修改违规管理
     * 
     * @param evViolation 违规管理
     * @return 结果
     */
    @Override
    public int updateEvViolation(EvViolation evViolation)
    {
        return evViolationMapper.updateEvViolation(evViolation);
    }

    /**
     * 批量删除违规管理
     * 
     * @param violationIds 需要删除的违规管理主键
     * @return 结果
     */
    @Override
    public int deleteEvViolationByViolationIds(Long[] violationIds)
    {
        return evViolationMapper.deleteEvViolationByViolationIds(violationIds);
    }

    /**
     * 删除违规管理信息
     * 
     * @param violationId 违规管理主键
     * @return 结果
     */
    @Override
    public int deleteEvViolationByViolationId(Long violationId)
    {
        return evViolationMapper.deleteEvViolationByViolationId(violationId);
    }
}
